//导出mutations对象
export default{
    //登录状态
    IsLogin(state,obj){
        state.isLogin = true;//改为登录状态
        state.id = obj.id;//用户的uid
    },
    //退出登录状态
    ExitLogin(state){
        state.isLogin = false;//改为登录状态
        state.id = '';//用户的uid清空
    },
    SaveAdminInfo(state,obj){
        state.adminInfo = obj.adminInfo;//用户的uid
    },
    SaveClassOne(state,obj){
        state.classOneOptions = obj.optionsOne;//用户的uid
    },
    SaveClassTwo(state,obj){
        state.classTwoOptions = obj.optionsTwo;//用户的uid
    },
    SaveRole(state,obj){
        state.role = obj.role;//用户的uid
    },
    SavePermissions(state,obj){
        state.permissions = obj.permissions;//用户的uid
    },

    //缓存 联系我们 页面是否显示

    // IsShow(state,obj){
    //     state.isShow = obj.isShow;//用户的uid
    // },
}